<%-- 
    Document   : navigation
    Created on : 17.5.2011, 8:59:10
    Author     : Chixen
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>

<f:setLocale value="${pageContext.request.locale}"/>
<f:setBundle basename="labelsBundle" />

<div class="nav">
    <strong><f:message key="navigation"/>:</strong>   
    <a href="${pageContext.request.contextPath}/standings?lid=${lid}&hg=both&fh=full" target="_self"><f:message key="where_both"/> (<f:message key="time_full"/>)</a> | 
    <a href="${pageContext.request.contextPath}/standings?lid=${lid}&hg=home&fh=full" target="_self"><f:message key="where_home"/> (<f:message key="time_full"/>)</a> | 
    <a href="${pageContext.request.contextPath}/standings?lid=${lid}&hg=guests&fh=full" target="_self"><f:message key="where_guests"/> (<f:message key="time_full"/>)</a> | 
    <a href="${pageContext.request.contextPath}/standings?lid=${lid}&hg=both&fh=half" target="_self"><f:message key="where_both"/> (<f:message key="time_half"/>)</a> | 
    <a href="${pageContext.request.contextPath}/standings?lid=${lid}&hg=home&fh=half" target="_self"><f:message key="where_home"/> (<f:message key="time_half"/>)</a> | 
    <a href="${pageContext.request.contextPath}/standings?lid=${lid}&hg=guests&fh=half" target="_self"><f:message key="where_guests"/> (<f:message key="time_half"/>)</a>
</div>
<h2>
    <c:choose>
        <c:when test="${hg eq 'both'}">
            <f:message key="where_both"/>
        </c:when>
        <c:when test="${hg eq 'home'}">
            <f:message key="where_home"/>
        </c:when>
        <c:when test="${hg eq 'guests'}">
            <f:message key="where_guests"/>
        </c:when>
    </c:choose>
    <c:choose>
        <c:when test="${fh eq 'full'}">
            (<f:message key="time_full"/>)
        </c:when>
        <c:when test="${fh eq 'half'}">
            (<f:message key="time_half"/>)
        </c:when>
    </c:choose>                    
</h2>